Release 10.1A: OpenEdge Development:
Programming Interfaces
Programming example
The exercise below demonstrates the techniques discussed in this section.
![]()
To see an example of using headers and footers in a report:
The following code fragment shows the report generating code for this procedure:
The following notes summarize the techniques shown in this chapter:
- The body frame, which has no
HEADERsection, appears in its normal position, at the top of the file with other definitions.- The
PAGE-SIZEoption sets the report page size.- The use of the control break changes the report output from one report into a series of smaller reports-one for each sales rep.
- This
HEADERframe comprises the running report head.PAGE-TOPplaces this frame at the top of the report page.- This
HEADERframe comprises the running page footer.PAGE-BOTTOMplaces the header frame at the bottom of the page.- The
VIEWstatements force Progress to evaluate the twoHEADERframes on each iteration of the block.- Here, the report creates an address string and uses the @ option to place the result at the Holder variable.
- The
LAST-OFfunction is for checking for the end of a break group, allowing you to perform special tasks. In this case, the procedure suppresses the page footer because this break group report is complete. It also uses thePAGEstatement to start a new page for the next break group report.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |